﻿using AutoMapper;
using B.S.BasicData.Api.Read.Application.Command.Account;
using B.S.BasicData.Api.Read.Dtos;
using B.S.BasicData.Domain.Entities;

namespace B.S.BasicData.Api.Read
{
    public class AutoMapperProfile:Profile
    {

        public AutoMapperProfile() {
            CreateMap<AccountDTO, AccountModel>().ReverseMap();
            CreateMap<RoleDto, RoleModel>().ReverseMap();
            CreateMap<DepartmentTreeDTO, DepartmentModel>().ReverseMap();
            CreateMap<ADepartmentTreeDTO, DepartmentModel>().ReverseMap();
            CreateMap<LogModel, LogDto>().ReverseMap();
        }
    }
}
